package com.lvcoding.oauth2.authorization.code;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.security.oauth2.config.annotation.web.configuration.EnableAuthorizationServer;
import org.springframework.security.oauth2.config.annotation.web.configuration.EnableResourceServer;

@EnableResourceServer // 开启资源服务器
@EnableAuthorizationServer // 开启授权服务器
@SpringBootApplication
public class AuthorizationCodeApp {
    public static void main(String[] args) {
        SpringApplication.run(AuthorizationCodeApp.class, args);
    }
}
